import 'package:flutter/material.dart';
import 'package:fzcgx_app/common/adapter_utils.dart';
import 'package:fzcgx_app/ui/widget/custom_appbar_widget.dart';

class OrderGrabbingSuccessPage extends StatefulWidget {
  OrderGrabbingSuccessPage({Key key}) : super(key: key);

  @override
  _OrderGrabbingSuccessPageState createState() =>
      _OrderGrabbingSuccessPageState();
}

class _OrderGrabbingSuccessPageState extends State<OrderGrabbingSuccessPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: CustomAppbar(
        title: '抢单成功',
      ),
      body: SafeArea(
          child: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            Text('抢单成功..请耐心等待发布方确认',
                style: TextStyle(
                    color: Color(0xff141F33),
                    fontWeight: FontWeight.w500,
                    fontSize: AdapterUtils.getSp(14))),
            SizedBox(
              height: AdapterUtils.getHeight(10),
            ),
            Text('最终选择权由发布方决定',
                style: TextStyle(
                    color: Color(0xff999999),
                    fontWeight: FontWeight.w500,
                    fontSize: AdapterUtils.getSp(12))),
            SizedBox(
              height: AdapterUtils.getHeight(30),
            ),
            InkWell(
              child: Container(
                width: AdapterUtils.getWidth(120),
                height: AdapterUtils.getHeight(36),
                alignment: Alignment.center,
                decoration: BoxDecoration(
                    color: Color(0xff2C98FB),
                    borderRadius: BorderRadius.all(Radius.circular(20))),
                child: Text('查看订单',
                    style: TextStyle(
                        color: Colors.white,
                        fontWeight: FontWeight.w500,
                        fontSize: AdapterUtils.getSp(14))),
              ),
            )
          ],
        ),
      )),
    );
  }
}
